package com.yun.dao;

import com.yun.pojo.Pet;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface PetMapper {

    List<Pet> queryPets();

    int savePet(Pet pet);

    Pet queryPetById(int id);

    int deleteById(int id);

    int updatePet(Pet pet);

    List<Pet> queryPetBySickroom(String pSickroom);
    List<Pet> queryPetByName(String name);
}
